package com.iltgcl.echovoicedemo.ui.base

import androidx.lifecycle.LiveData
import androidx.preference.PreferenceFragmentCompat
import com.google.android.material.snackbar.Snackbar
import com.iltgcl.echovoicedemo.extensions.setupSnackbar

abstract class BasePreferenceFragment : PreferenceFragmentCompat() {

    fun setupSnackbar(snackbarEvent: LiveData<Event<Int>>) {
        view?.setupSnackbar(viewLifecycleOwner, snackbarEvent, Snackbar.LENGTH_LONG)
    }
}